<template>
  <div id="app">
    <TopBarVue></TopBarVue>
    <HeaderVue></HeaderVue>
    <router-view @fn="reloadTopbar" />
    <FooterVue></FooterVue>
    <LoginVue v-show="isShowLoginModal"></LoginVue>
  </div>
</template>

<script>
import TopBarVue from '@/components/TopBar.vue';
import HeaderVue from '@/components/Header.vue';
import FooterVue from '@/components/Footer.vue';
import LoginVue from './components/Login.vue';

import { mapState } from 'vuex'

export default {
  data() {
    return {

    }
  },
  components: {
    TopBarVue,
    HeaderVue,
    FooterVue,
    LoginVue
  },
  computed: {
    ...mapState({
      isShowLoginModal: state => state.showLoginModal.isShowLoginModal
    })
  },
  methods: {
    reloadTopbar() { return }
  }
}
</script>

<style scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
</style>
